package com.yuanqi.service;

import com.yuanqi.domain.PaymentRecord;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface PaymentRecordService {
    
    Page<PaymentRecord> getPaymentRecords(Pageable pageable, String paymentNumber, String orderNumber);
    
    PaymentRecord getPaymentRecordById(Integer id);
    
    PaymentRecord getPaymentRecordByPaymentNumber(String paymentNumber);
    
    List<PaymentRecord> getPaymentRecordsByConditions(String paymentNumber, String orderNumber);
    
    Map<String, Object> getPaymentRecordStats();
    
    PaymentRecord createPaymentRecord(PaymentRecord paymentRecord);
    
    PaymentRecord updatePaymentRecord(PaymentRecord paymentRecord);
    
    void deletePaymentRecord(Integer id);
}
